home *** CD-ROM | disk | FTP | other *** search
/ PD Collection CD 1 / PD Collection CD 1.iso / comms / serterm / !SerialTrm / !Run < prev    next >
Text File  |  1995-07-02  |  2KB  |  50 lines

  1. set SERIALTERM$dir <obey$dir>
  2. iconsprites <obey$dir>.!sprites
  3. wimpslot -min 48k -max 48k
  4. || *ALL* the system variables in this script *must* be defined;
  5. || the app. can't function without them!
  6.  
  7. || The next line controls the initial wimplot allocated to the taskwindow
  8. || created by the program:
  9. SET SerialTerm$InitialSlot 32K
  10.  
  11. || The next line allows you to specify a command that will be executed
  12. || when the taskwindow starts up; You *must* supply a command; try '||'
  13. || if this offends you (although Dog knows why...)
  14. SET SerialTerm$StartUpCommand "Echo |<12>Welcome to SerialTerm. The time is |<sys$time>|<10>|<13>This task has |<serialterm$initialslot>Bytes allocated to it.|<10>|<13>"
  15.  
  16. || The next line sets the size of the output buffer for the routine that
  17. || dumps taskwindow output to the serial port; any value>260 is allowed
  18. || (although the wimpslot may need adjusting for values>8096), any value <260
  19. || will enforce the default of 2048. The value is in characters BTW.
  20. SET SerialTerm$OutputBufferSize 8096
  21.  
  22. || The next line defines how many characters the 'dump' routine will try to
  23. || shift every 'Null' WimpPoll. Use -1 to take the default of "As many as
  24. || I can get away with on the sly, like." (ie. until o/p buffer is full)
  25. SET SerialTerm$CharsPerPoll -1
  26.  
  27. || The next line controls the data format
  28. || Bit Value Meaning
  29. || 0,1   0   8 bit word
  30. ||       1   7 bit word
  31. ||       2   6 bit word
  32. ||       3   5 bit word
  33. ||   2   0   1 stop bit
  34. ||       1   2 stop bits ( 1 if 8bit word+parity; 1.5 if 5bit word no parity)
  35. ||   3   0   Parity disabled
  36. ||       1   Parity enabled
  37. || 4,5   0   Odd parity
  38. ||       1   even parity
  39. ||       2   Parity always 1 on Tx, ignored on Rx
  40. ||       3   Parity always 0 on Tx, ignored on Rx
  41. || 6-31  RESERVED, MUST BE 0
  42. || eg. 4 = 8 bit word, No parity (ie. Beeb default)
  43. SET SerialTerm$Data 4
  44.  
  45. || Set up the bauds here... (use fx7 & fx8)
  46. FX 7 8
  47. FX 8 8
  48.  
  49. || Go! (at long bloody last)
  50. RUN <obey$dir>.!RunImage